package com.ruibang.glass.quality.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 成品颗粒度信息
 * </p>
 *
 * @author wujie
 * @since 2024-03-21
 */

@ApiModel(value = "成品颗粒度信息")
@TableName("g_quality_granule")
@Data
public class QualityGranule {

    @ApiModelProperty(value = "颗粒度ID")
    @TableId(value = "granule_id", type = IdType.ASSIGN_ID)
    private String granuleId;
    @ApiModelProperty(value = "玻璃ID")
    private String glassId;
    @ApiModelProperty(value = "产品型号(1:G8.5,2:G8.6,3:G8.6+,4:G8.7)")
    private String glassModel;
    @ApiModelProperty(value = "测定日期")
    private LocalDate measureDate;
    @ApiModelProperty(value = "抽检时间")
    private String checkTime;
    @ApiModelProperty(value = "所属产线")
    private String productLine;
    @ApiModelProperty(value = "测量人")
    private String userId;
    @ApiModelProperty(value = "判定(合格:0,不合格:1)")
    private String decide;
    @ApiModelProperty(value = "颗粒度1H1")
    @TableField("granule_1h1")
    private Float granule1h1;
    @ApiModelProperty(value = "颗粒度1H2")
    @TableField("granule_1h2")
    private Float granule1h2;
    @ApiModelProperty(value = "颗粒度1H3")
    @TableField("granule_1h3")
    private Float granule1h3;
    @ApiModelProperty(value = "颗粒度2H1")
    @TableField("granule_2h1")
    private Float granule2h1;
    @ApiModelProperty(value = "颗粒度2H2")
    @TableField("granule_2h2")
    private Float granule2h2;
    @ApiModelProperty(value = "颗粒度2H3")
    @TableField("granule_2h3")
    private Float granule2h3;
    @ApiModelProperty(value = "颗粒度3H1")
    @TableField("granule_3h1")
    private Float granule3h1;
    @ApiModelProperty(value = "颗粒度3H2")
    @TableField("granule_3h2")
    private Float granule3h2;
    @ApiModelProperty(value = "颗粒度3H3")
    @TableField("granule_3h3")
    private Float granule3h3;
    @ApiModelProperty(value = "颗粒度4H1")
    @TableField("granule_4h1")
    private Float granule4h1;
    @ApiModelProperty(value = "颗粒度4H2")
    @TableField("granule_4h2")
    private Float granule4h2;
    @ApiModelProperty(value = "颗粒度4H3")
    @TableField("granule_4h3")
    private Float granule4h3;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "是否删除(1:是,0:否)")
    @TableLogic
    private String isDelete;

    @ApiModelProperty(value = "关联图片Id列表")
    @TableField(exist = false)
    private List<String> fileIds;

    @ApiModelProperty(value = "编辑时删除图片Id列表")
    @TableField(exist = false)
    private List<String> deleteFileIds;

    @ApiModelProperty(value = "产线名称")
    private String productLineName;

    @ApiModelProperty(value = "用户名称")
    @TableField(exist = false)
    private String userName;
}
